home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / misc / wt004wc / makefile.dos < prev    next >
Encoding:
Makefile  |  1994-05-27  |  3.3 KB  |  106 lines

  1. #  wt -- a 3d game engine
  2. #
  3. #  Copyright (C) 1994 by Chris Laurel
  4. #  email:  claurel@mr.net
  5. #  snail mail:  Chris Laurel, 5700 W Lake St #208,  St. Louis Park, MN  55416
  6. #
  7. #  This program is free software; you can redistribute it and/or modify
  8. #  it under the terms of the GNU General Public License as published by
  9. #  the Free Software Foundation; either version 2 of the License, or
  10. #  (at your option) any later version.
  11. #
  12. #  This program is distributed in the hope that it will be useful,
  13. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. #  GNU General Public License for more details.
  16. #
  17. #  You should have received a copy of the GNU General Public License
  18. #  along with this program; if not, write to the Free Software
  19. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # Makefile for MS-DOS version. Since the compilation process for MS-DOS
  22. # differs greatly from other versions, I decided to build a separate
  23. # makefile for it.
  24. # Petteri Kangaslampi <pekanga@freeport.uwasa.fi>
  25.  
  26.  
  27. ############ Graphics systems -- uncomment one of these ##########
  28. #### MS-DOS with VGA and direct hardware keyboard handling
  29. GRAPHOBJS=dos-vga.obj
  30. INPUTDEVOBJS=dos-keyb.obj
  31. GRAPHDEFS=-dDOSVGA
  32.  
  33. ### Architecture ###
  34. ARCH=ARCH_i86
  35. # ARCH= ARCH_SUN
  36. # ARCH=ARCH_OTHER
  37. ARCH_DEFS=-D$(ARCH)
  38.  
  39.  
  40.  
  41. CC=wcc386
  42.  
  43. #### Watcom C standard version - _FULL_ optimization for speed, line-number
  44. #### debug info
  45. CFLAGS=-w3 -d1 -oneatx -zp4 -5r
  46.  
  47.  
  48. OBJECTS=error.obj fixed.obj framebuf.obj gifload.obj list.obj render.obj \
  49.         table.obj texture.obj view.obj world.obj worldfil.obj wt.obj \
  50.         wtmem.obj $(INPUTDEVOBJS) $(GRAPHOBJS)
  51.  
  52. LINK = wlink @wcwt.lnk
  53.  
  54.  
  55. wt.exe : $(OBJECTS)
  56.         $(LINK)
  57.  
  58. error.obj: error.c framebuf.h graphics.h error.h
  59.         $(CC) $(CFLAGS) error.c
  60.  
  61. fixed.obj: fixed.c error.h fixed.h
  62.         $(CC) $(CFLAGS) fixed.c
  63.  
  64. framebuf.obj: framebuf.c wt.h error.h graphics.h wtmem.h framebuf.h
  65.         $(CC) $(CFLAGS) framebuf.c
  66.  
  67. gifload.obj: gifload.c wt.h error.h texture.h
  68.         $(CC) $(CFLAGS) gifload.c
  69.  
  70. dos-keyb.obj : dos-keyb.c wt.h error.h input.h dos-keyb.h
  71.         $(CC) $(CFLAGS) dos-keyb.c
  72.  
  73. dos-vga.obj : dos-vga.c wt.h error.h framebuf.h graphics.h
  74.         $(CC) $(CFLAGS) dos-vga.c
  75.  
  76. list.obj: list.c wt.h wtmem.h list.h
  77.         $(CC) $(CFLAGS) list.c
  78.  
  79. render.obj: render.c wt.h error.h fixed.h wtmem.h table.h view.h texture.h \
  80.         framebuf.h graphics.h world.h slice.h render.h \
  81.         slice.c slice-wc.c
  82.         $(CC) $(CFLAGS) render.c
  83.  
  84. table.obj: table.c wtmem.h table.h
  85.         $(CC) $(CFLAGS) table.c
  86.  
  87. texture.obj: table.c wt.h wtmem.h error.h texture.h
  88.         $(CC) $(CFLAGS) texture.c
  89.  
  90. view.obj: view.c fixed.h wtmem.h view.h
  91.         $(CC) $(CFLAGS) view.c
  92.  
  93. world.obj: world.c wt.h fixed.h error.h wtmem.h texture.h table.h world.h
  94.         $(CC) $(CFLAGS) world.c
  95.  
  96. worldfil.obj: worldfil.c wt.h error.h fixed.h wtmem.h list.h table.h \
  97.               texture.h world.h worldfil.h
  98.         $(CC) $(CFLAGS) worldfil.c
  99.  
  100. wt.obj: wt.c wt.h fixed.h  view.h texture.h table.h world.h worldfil.h \
  101.         framebuf.h render.h graphics.h input.h
  102.         $(CC) $(CFLAGS) wt.c
  103.  
  104. wtmem.obj: wtmem.c error.h wtmem.h
  105.         $(CC) $(CFLAGS) wtmem.c
  106.